# Maintainer:  Zsolt Kajtar <soci at c64.rulez.org>

_realname=64tass
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.58.2974
pkgrel=1
pkgdesc="64tass is cross (turbo) assembler targeting the MOS 65xx series of micro processors (6502/65C02/R65C02/W65C02/65CE02/65816/DTV/65EL02)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url="http://tass64.sourceforge.net/"
license=('GPLv2')
depends=()
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
options=('strip')
source=("http://sourceforge.net/projects/tass64/files/source/${_realname}-${pkgver}-src.zip")
sha256sums=('3f3e2b1867664cb3b64d315fea11938f1666d79d11ea705a6937310257ef0a67')

prepare()
{
  cd "${srcdir}/${_realname}-${pkgver}-src"
}

build()
{
  cd "${srcdir}/${_realname}-${pkgver}-src"
  make
}

package()
{
  cd "${srcdir}/${_realname}-${pkgver}-src"
  make install DESTDIR="${pkgdir}" prefix="${MINGW_PREFIX}"
}
